How did authors of statistical hypothesis tests come up with their test statistics?
Design a test statistics from scratch
Common methods
Likelihood ratio method
Method of moments
Score (Lagrange multiplier)
Ward test
Bayesian methods
Permutation and resampling methods
Maximum likelihood estimation
Method of least squares
In this example out test statisic is
\[T = \frac{\bar{X}-\mu}{s/\sqrt{n}}\]
Understanding the decision making process in hypothesis testing
We look at the distribution of the test statistic under the null hypothesis to understand how the test statistic behaves when the null hypothesis is true.
\[T = \frac{\bar{X}-1}{s/\sqrt{n}} \sim t_{n-1}\]
Errors in Hypothesis Testing
- The Type I error is the probability of rejecting the null hypothesis when it is actually true.
\[\alpha = 𝑃(\text{Reject } H_0|H_0 \text{ is true})\]
- Type II error is the probability of failing to reject the null hypothesis when the alternative hypothesis is actually true.
\[\beta = 𝑃(\text{Falling to Reject } H_0|H_0 \text{ is false})\]
This is very similar to
• False negative test = type I error
• False positive test = type II error
Significance level
\[\alpha = 𝑃(\text{Reject } H_0|H_0 \text{ is true})\]
The more serious the type I error, the smaller the significance level should be.
Power
\[\text{Power} = 1-\beta\]
The power of a test is the probability of rejecting the null hypothesis when it is false; in other words, it is the probability of avoiding a type II error.
Solution - In class discussion
Question 4
As reported by a NEWS channel, the mean serum high density (HDL) cholesterol of female 20 - 29 years old is 53. A doctor claims that the HDL Cholesterol level of female 20 - 29 years old is greater than 53. He uses the following data, randomly gathered from 22 individuals.
65, 47, 51, 54, 70, 55, 44, 48, 36, 53, 45, 34, 59, 45, 54, 50, 40, 60, 53, 53, 54, 55
It is known from past research that the distribution of the HDL cholesterol is normally distributed and the corresponding population variance is 81. Test the claim that the HDL level is greater than 53 at \(\alpha\) = 0.01 level of significance.
Question 5
A chemist wants to measure the bias in a pH meter. She uses the meter to measure the pH in 14 neutral substances (pH=7) and obtains the data below.
7.01, 7.04, 6.97, 7.00, 6.99, 6.97, 7.04, 7.04, 7.01, 7.00, 6.99, 7.04, 7.07, 6.97
Is there sufficient evidence to support the claim that the pH meter is not correctly calibrated at the α = 0.05 level of significance?
Question 6
A dietician hopes to reduce a person’s cholesterol level by using a special diet supplemented with a combination of vitamin pills. Twenty (20) subjects were pre-tested and then placed on diet for two weeks. Their cholesterol levels were checked after the two week period. The results are shown below. Cholesterol levels are measured in milligrams per decilitre.
before: 210, 235, 208, 190, 172, 244, 211, 235, 210, 190, 175, 250, 200, 270, 222, 203, 209, 220, 250, 280)
after: 190, 170, 210, 188, 173, 195, 228, 200, 210, 184, 196, 208, 211, 212, 205, 221, 240, 250, 230, 220
Test the claim that the Cholesterol level before the special diet is greater than the Cholesterol level after the special diet at α = 0.01 level of significance.